package proxy.selfdom;

public class GamePlayerProxy implements IGamePlayer, IProxy {

	private IGamePlayer gamePlayer = null;

	public GamePlayerProxy(IGamePlayer gamePlayer) {
		this.gamePlayer = gamePlayer;
	}

	// 计算费用
	public void count() {
		System.out.println("升级总费用是：150元");
	}

	// 代练杀怪
	public void killBoss() {
		this.gamePlayer.killBoss();
	}

	// 代练登录
	public void login(String user, String password) {
		this.gamePlayer.login(user, password);
	}

	// 代练升级
	public void upgrade() {
		this.gamePlayer.upgrade();
		this.count();
	}

}
